using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.IO;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml;

public partial class Testing_TestWebRequest : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        WebProxy webProxy = new WebProxy("squid.latrobe.edu.au", 8080);
        
        WebRequest request = WebRequest.Create("http://www.google.com");
        
        request.Proxy = webProxy;
        WebResponse response = request.GetResponse(); 
        StreamReader reader = new StreamReader(response.GetResponseStream()); 
        string str = reader.ReadToEnd();

        this.Label1.Text = str;
    }
}
